 package net.ruixin.spring;

 import org.hibernate.FlushMode;
 import org.hibernate.HibernateException;
 import org.hibernate.Session;
 import org.hibernate.SessionFactory;
 import org.hibernate.Transaction;
 import org.springframework.orm.hibernate3.support.OpenSessionInViewFilter;

 public class OurOpenSessionInViewFilter extends OpenSessionInViewFilter
 {
   public OurOpenSessionInViewFilter()
   {
     super.setFlushMode(FlushMode.AUTO);
   }

   protected void closeSession(Session session, SessionFactory sessionFactory) {
     session.flush();
     try
     {
       session.getTransaction().commit();
     }
     catch (HibernateException e)
     {
     }
     super.closeSession(session, sessionFactory);
   }
 }

/* Location:           E:\ruixin-core.jar
 * Qualified Name:     net.ruixin.spring.OurOpenSessionInViewFilter
 * JD-Core Version:    0.5.4
 */